
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>视图消息 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="NAVPARAM.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="LOCALE.html">
            
                <a href="LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="EXTENDED.html">
            
                <a href="EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="STYLE.html">
            
                <a href="STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="NAVG.html">
            
                <a href="NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="TEMP.html">
            
                <a href="TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="Theme.html">
            
                <a href="Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="NAVPARAM.html">
            
                <a href="NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.1.8" data-path="VIEWMESSAGE.html">
            
                <a href="VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../CTRLS/FORM.html">
            
                <a href="../CTRLS/FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../CTRLS/GRID.html">
            
                <a href="../CTRLS/GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../CTRLS/GRIDEXPBAR.html">
            
                <a href="../CTRLS/GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../CTRLS/SEARCHBAR.html">
            
                <a href="../CTRLS/SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../CTRLS/SEARCHFORM.html">
            
                <a href="../CTRLS/SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../CTRLS/DataKanBan.html">
            
                <a href="../CTRLS/DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../CTRLS/PortalComponents.html">
            
                <a href="../CTRLS/PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../CTRLS/TABEXPPANEL.html">
            
                <a href="../CTRLS/TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../CTRLS/TABVIEWPANEL.html">
            
                <a href="../CTRLS/TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../CTRLS/APPMENU.html">
            
                <a href="../CTRLS/APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="../CTRLS/LIST.html">
            
                <a href="../CTRLS/LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="../CTRLS/LISTEXPBAR.html">
            
                <a href="../CTRLS/LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="../CTRLS/PANEL.html">
            
                <a href="../CTRLS/PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="../CTRLS/DATAVIEWCTRL.html">
            
                <a href="../CTRLS/DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="../CTRLS/DATAVIEWEXPBAR.html">
            
                <a href="../CTRLS/DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="../CTRLS/DataRelationPage.html">
            
                <a href="../CTRLS/DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="../CTRLS/DATARELATIONFIELD.html">
            
                <a href="../CTRLS/DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="../CTRLS/CALENDAR.html">
            
                <a href="../CTRLS/CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="../CTRLS/CALENDARTIMELINE.html">
            
                <a href="../CTRLS/CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="../CTRLS/CALENDAREXPBAR.html">
            
                <a href="../CTRLS/CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="../CTRLS/TREEEXPBAR.html">
            
                <a href="../CTRLS/TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="../CTRLS/TREEVIEWUNIT.html">
            
                <a href="../CTRLS/TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="../CTRLS/TREEGRID.html">
            
                <a href="../CTRLS/TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                <a href="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="../CTRLS/KANBANVIEWUNIT.html">
            
                <a href="../CTRLS/KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="../CTRLS/GANTT.html">
            
                <a href="../CTRLS/GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="../CTRLS/DATACHART.html">
            
                <a href="../CTRLS/DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="../CTRLS/SELECTVIEWPANEL.html">
            
                <a href="../CTRLS/SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="../CTRLS/WIZARDPANEL.html">
            
                <a href="../CTRLS/WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="../CTRLS/STATEWIZARDPANEL.html">
            
                <a href="../CTRLS/STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="../CTRLS/CONTEXTMENU.html">
            
                <a href="../CTRLS/CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="../CTRLS/TOOLBAR.html">
            
                <a href="../CTRLS/TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../UISERVICE/CTRLSERVICE.html">
            
                <a href="../UISERVICE/CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../UISERVICE/UISERVICE.html">
            
                <a href="../UISERVICE/UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../UISERVICE/AUTHSERVICE.html">
            
                <a href="../UISERVICE/AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../UISERVICE/CODELISTSERVICE.html">
            
                <a href="../UISERVICE/CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../UISERVICE/COUNTERSERVICE.html">
            
                <a href="../UISERVICE/COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../UISERVICE/APPUTILSERVICE.html">
            
                <a href="../UISERVICE/APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                <a href="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="PROBLEM.html">
            
                <a href="PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >视图消息</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x89C6;&#x56FE;&#x6D88;&#x606F;">&#x89C6;&#x56FE;&#x6D88;&#x606F;</h2>
<p>Vue-R7&#x652F;&#x6301;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x63D0;&#x793A;&#x3002;&#x6309;&#x7167;&#x6D88;&#x606F;&#x4F4D;&#x7F6E;&#x53EF;&#x5206;&#x4E3A;&#x89C6;&#x56FE;&#x4E0A;&#x65B9;&#x3001;&#x89C6;&#x56FE;&#x4E0B;&#x65B9;&#x3001;&#x89C6;&#x56FE;&#x5185;&#x5BB9;&#x533A;&#x3001;&#x5F39;&#x51FA;4&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x540C;&#x65F6;&#x6309;UI&#x5C55;&#x793A;&#x6570;&#x636E;&#x662F;&#x5426;&#x4E3A;&#x52A8;&#x6001;&#x6570;&#x636E;&#x53C8;&#x53EF;&#x5206;&#x4E3A;&#x52A8;&#x6001;&#x6570;&#x636E;&#x548C;&#x9759;&#x6001;&#x6570;&#x636E;2&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x5177;&#x4F53;&#x5B9E;&#x73B0;&#x903B;&#x8F91;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<h3 id="&#x6D88;&#x606F;&#x4F4D;&#x7F6E;">&#x6D88;&#x606F;&#x4F4D;&#x7F6E;</h3>
<p>&#x5728;&#x5E73;&#x53F0;&#x914D;&#x7F6E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x6D88;&#x606F;&#x4F4D;&#x7F6E;&#xFF0C;&#x5728;UI&#x5C55;&#x793A;&#x65F6;&#x4F1A;&#x6839;&#x636E;&#x914D;&#x7F6E;&#x9879;&#x5C06;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x653E;&#x7F6E;&#x5728;&#x6B63;&#x786E;&#x7684;&#x4F4D;&#x7F6E;&#x3002;</p>
<p><img src="images/VIEWMESSAGE.png" alt="image-20200922184241424"></p>
<p>&#x5728;&#x7ED8;&#x5236;UI&#x65F6;&#x5C06;&#x5F53;&#x524D;&#x89C6;&#x56FE;&#x540D;&#x79F0;&#x3001;&#x5F53;&#x524D;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x4F4D;&#x7F6E;&#x3001;&#x8BE5;&#x89C6;&#x56FE;&#x914D;&#x7F6E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x6807;&#x8BC6;&#x4F20;&#x9012;&#x5230;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x7EC4;&#x4EF6;&#x4E2D;&#x8FDB;&#x884C;&#x540E;&#x7EED;&#x7684;&#x903B;&#x8F91;&#x5904;&#x7406;&#xFF0C;&#x8BE6;&#x60C5;&#x89C1;<a href="#newsShow">&#x6D88;&#x606F;&#x5C55;&#x793A;</a></p>
<pre><code class="lang-vue">&lt;!-- &#x89C6;&#x56FE;&#x4E0A;&#x65B9; --&gt;
&lt;div class=&apos;view-top-messages&apos;&gt;
&lt;#if view.getPSViewMsgGroup()??&gt;
&lt;#assign viewMsgGroup = view.getPSViewMsgGroup()/&gt;
&lt;#compress&gt;
    &lt;#if viewMsgGroup.getCodeName()??&gt;
    &lt;app-alert-group position=&apos;TOP&apos; infoGroup=&apos;${viewMsgGroup.getCodeName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;#else&gt;
    &lt;app-alert-group position=&apos;TOP&apos; infoGroup=&apos;${viewMsgGroup.getName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;/#if&gt;  
&lt;/#compress&gt; 
&lt;/#if&gt;
&lt;/div&gt;

&lt;!-- &#x89C6;&#x56FE;&#x5185;&#x5BB9;&#x533A; --&gt;
&lt;div class=&apos;view-body-messages&apos;&gt;
&lt;#if view.getPSViewMsgGroup()??&gt;
&lt;#assign viewMsgGroup = view.getPSViewMsgGroup()/&gt;
&lt;#compress&gt;
    &lt;#if viewMsgGroup.getCodeName()??&gt;
    &lt;app-alert-group position=&apos;BODY&apos; infoGroup=&apos;${viewMsgGroup.getCodeName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;#else&gt;
    &lt;app-alert-group position=&apos;BODY&apos; infoGroup=&apos;${viewMsgGroup.getName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;/#if&gt; 
&lt;/#compress&gt; 
&lt;/#if&gt;
&lt;/div&gt;

&lt;!-- &#x89C6;&#x56FE;&#x4E0B;&#x65B9; --&gt;
&lt;div class=&apos;view-bottom-messages&apos;&gt;
&lt;#if view.getPSViewMsgGroup()??&gt;
&lt;#assign viewMsgGroup = view.getPSViewMsgGroup()/&gt;
&lt;#compress&gt;
    &lt;#if viewMsgGroup.getCodeName()??&gt;
    &lt;app-alert-group position=&apos;BOTTOM&apos; infoGroup=&apos;${viewMsgGroup.getCodeName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;#else&gt;
    &lt;app-alert-group position=&apos;BOTTOM&apos; infoGroup=&apos;${viewMsgGroup.getName()}&apos; viewname=&apos;${view.getCodeName()?lower_case}&apos;&gt;&lt;/app-alert-group&gt;
    &lt;/#if&gt; 
&lt;/#compress&gt; 
&lt;/#if&gt;
&lt;/div&gt;
</code></pre>
<h3 id="&#x52A8;&#x6001;&#x6570;&#x636E;">&#x52A8;&#x6001;&#x6570;&#x636E;</h3>
<p>UI&#x5C55;&#x793A;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x5185;&#x5BB9;&#x5305;&#x62EC;&#x9759;&#x6001;&#x5185;&#x5BB9;&#x548C;&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x96C6;&#x3002;&#x5F53;&#x4E3A;&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x96C6;&#x65F6;&#xFF0C;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x5185;&#x5BB9;&#x53EF;&#x80FD;&#x4E3A;HTML&#x5185;&#x5BB9;&#x6216;&#x7EAF;&#x6587;&#x672C;&#x5185;&#x5BB9;&#xFF0C;&#x6B64;&#x5904;&#x5177;&#x4F53;&#x5904;&#x7406;&#x903B;&#x8F91;&#x53C2;&#x89C1;<a href="#newsShow">&#x6D88;&#x606F;&#x5C55;&#x793A;</a></p>
<h3 id="&#x6D88;&#x606F;&#x5C55;&#x793A;"><span id="newsShow">&#x6D88;&#x606F;&#x5C55;&#x793A;</span></h3>
<p>&#x5728;&#x524D;&#x7AEF;&#x5C55;&#x793A;&#x4E2D;&#xFF0C;&#x89C6;&#x56FE;&#x7ED1;&#x5B9A;&#x7684;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4F1A;&#x4F20;&#x9012;&#x7ED9;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x7EC4;&#x4EF6;&#xFF0C;&#x5728;&#x6D88;&#x606F;&#x7EC4;&#x7EC4;&#x4EF6;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x7B5B;&#x9009;&#x8FC7;&#x540E;&#x53C8;&#x4F20;&#x9012;&#x7ED9;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x8FDB;&#x884C;&#x5177;&#x4F53;&#x7684;&#x5C55;&#x793A;&#x3002;&#x5177;&#x4F53;&#x5B9E;&#x73B0;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<h4 id="&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x7EC4;&#x4EF6;">&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x7EC4;&#x4EF6;</h4>
<p>&#x8BE5;&#x7EC4;&#x4EF6;&#x662F;&#x89C6;&#x56FE;&#x5411;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x4F20;&#x9012;&#x6570;&#x636E;&#x7684;&#x4E00;&#x4E2A;&#x201C;&#x4E2D;&#x95F4;&#x7AD9;&#x201D;&#xFF0C;&#x4E3B;&#x8981;&#x8D1F;&#x8D23;&#x6839;&#x636E;&#x663E;&#x793A;&#x4F4D;&#x7F6E;&#x7B5B;&#x9009;&#x89C6;&#x56FE;&#x4FE1;&#x606F;&#xFF0C;&#x7136;&#x540E;&#x4F20;&#x9012;&#x7ED9;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x8FDB;&#x884C;&#x5C55;&#x793A;&#x3002;&#x5177;&#x4F53;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<p>&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x6839;&#x636E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x6807;&#x8BC6;&#x901A;&#x8FC7;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x670D;&#x52A1;&#x8BF7;&#x6C42;&#x6570;&#x636E;&#xFF0C;&#x7136;&#x540E;&#x6839;&#x636E;&#x6D88;&#x606F;&#x663E;&#x793A;&#x4F4D;&#x7F6E;&#x7B5B;&#x9009;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#xFF08;&#x5F39;&#x51FA;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x9ED8;&#x8BA4;&#x5F52;&#x5C5E;&#x4E8E;&#x89C6;&#x56FE;&#x4E0A;&#x65B9;&#x5904;&#x7406;&#xFF09;&#x3002;&#x968F;&#x540E;&#x5C06;&#x7B5B;&#x9009;&#x7684;&#x6570;&#x636E;&#x8FDE;&#x540C;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x6807;&#x8BC6;&#x548C;&#x89C6;&#x56FE;&#x540D;&#x79F0;&#x4F20;&#x9012;&#x7ED9;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x8FDB;&#x884C;&#x4E0B;&#x4E00;&#x6B65;&#x7684;&#x5904;&#x7406;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;tag
     * 
     * @type {any}
     * @memberof AppAlertGroup
     */</span>
    @Prop() infoGroup: <span class="hljs-built_in">any</span>;

    <span class="hljs-comment">/**
     * &#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x663E;&#x793A;&#x4F4D;&#x7F6E;
     * 
     * @type {any}
     * @memberof AppAlertGroup
     */</span>
    @Prop() position: <span class="hljs-built_in">any</span>;

        <span class="hljs-comment">/**
     * &#x83B7;&#x53D6;&#x5F53;&#x524D;&#x4F4D;&#x7F6E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x96C6;&#x5408;
     * 
     * @memberof AppAlertGroup
     */</span>
    <span class="hljs-keyword">public</span> getItems() {
        <span class="hljs-keyword">this</span>.viewMessageGroupService.getViewMessageDetailsByTag(<span class="hljs-keyword">this</span>.infoGroup).then((response: <span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span>(response) {
                response.forEach((data: <span class="hljs-built_in">any</span>) =&gt; {
                    <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.position &amp;&amp; <span class="hljs-built_in">Object</span>.is(<span class="hljs-keyword">this</span>.position, data.position)) {
                        <span class="hljs-keyword">this</span>.items.push(data);
                    }
                    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(<span class="hljs-string">&apos;TOP&apos;</span>, <span class="hljs-keyword">this</span>.position) &amp;&amp; <span class="hljs-built_in">Object</span>.is(<span class="hljs-string">&apos;POPUP&apos;</span>, data.position)) {
                        <span class="hljs-keyword">this</span>.items.push(data);
                    }
                })  
            } 
        }).catch(error =&gt; {
            <span class="hljs-built_in">console</span>.log(error);
        });
    }
</code></pre>
<h4 id="&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;">&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x4EF6;</h4>
<p>&#x8BE5;&#x7EC4;&#x4EF6;&#x7528;&#x4E8E;&#x5448;&#x73B0;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x3002;&#x5B83;&#x6839;&#x636E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x6807;&#x8BC6;&#x8C03;&#x7528;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x670D;&#x52A1;&#x67E5;&#x8BE2;&#x5177;&#x4F53;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x5185;&#x5BB9;&#xFF0C;&#x7136;&#x540E;&#x5BF9;&#x5176;&#x8FDB;&#x884C;&#x5904;&#x7406;&#xFF0C;&#x8F6C;&#x53D8;&#x6210;&#x6700;&#x7EC8;&#x7684;&#x663E;&#x793A;&#x6570;&#x636E;&#x6A21;&#x578B;&#x8FDB;&#x884C;&#x5C55;&#x793A;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<blockquote style="border-color: blue;"><p>&#x83B7;&#x53D6;&#x5177;&#x4F53;&#x89C6;&#x56FE;&#x6D88;&#x606F;</p></blockquote>

<p>&#x6839;&#x636E;&#x89C6;&#x56FE;&#x6807;&#x8BC6;&#x83B7;&#x53D6;&#x5177;&#x4F53;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#xFF0C;&#x7136;&#x540E;&#x904D;&#x5386;&#x5904;&#x7406;</p>
<pre><code class="lang-typescript">    <span class="hljs-keyword">public</span> async getData() {
        <span class="hljs-keyword">let</span> response: <span class="hljs-built_in">any</span> = await <span class="hljs-keyword">this</span>.viewMessageService.getViewMessageByTag(<span class="hljs-keyword">this</span>.tag, <span class="hljs-literal">null</span>, <span class="hljs-literal">null</span>)
        <span class="hljs-keyword">if</span>(response &amp;&amp; response.length &gt; <span class="hljs-number">0</span>) {
            response.forEach((item: <span class="hljs-built_in">any</span>) =&gt; {
                <span class="hljs-keyword">let</span> tempData: <span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(item));
                <span class="hljs-keyword">if</span>(!tempData.type) {
                    tempData.type = <span class="hljs-string">&quot;info&quot;</span>;
                }
                <span class="hljs-comment">//  &#x5224;&#x65AD;&#x662F;&#x5426;&#x5B58;&#x5728;&#x5185;&#x5BB9;</span>
                <span class="hljs-keyword">this</span>.handleItemHasContent(tempData);
                tempData.closable = tempData.isEnableRemove;
                <span class="hljs-keyword">let</span> flag = <span class="hljs-keyword">this</span>.handleItemCloseMode(tempData);
                <span class="hljs-keyword">this</span>.handleItemPosition(tempData, flag);
                <span class="hljs-keyword">this</span>.items.push(tempData);
            });
        } 
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x5904;&#x7406;&#x6D88;&#x606F;&#x663E;&#x793A;&#x72B6;&#x6001;</p></blockquote>

<p>&#x5982;&#x679C;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x6807;&#x9898;&#x548C;&#x5185;&#x5BB9;&#x90FD;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x90A3;&#x4E48;&#x4E0D;&#x8FDB;&#x884C;&#x5C55;&#x793A;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-keyword">public</span> handleItemHasContent(data: <span class="hljs-built_in">any</span>) {
        data.hasContent = <span class="hljs-literal">true</span>;
        <span class="hljs-keyword">if</span>(!data.title &amp;&amp; !data.content) {
            data.hasContent = <span class="hljs-literal">false</span>;
        }
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x5904;&#x7406;&#x6D88;&#x606F;&#x5173;&#x95ED;&#x6A21;&#x5F0F;</p></blockquote>

<p>&#x5E73;&#x53F0;&#x8FD8;&#x652F;&#x6301;&#x914D;&#x7F6E;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7684;&#x4E09;&#x79CD;&#x5173;&#x95ED;&#x6A21;&#x5F0F;&#xFF1A;&#x65E0;&#x5173;&#x95ED;&#x3001;&#x9ED8;&#x8BA4;&#x5173;&#x95ED;&#x3001;&#x672C;&#x6B21;&#x5173;&#x95ED;&#x3002;</p>
<p><strong>&#x65E0;&#x5173;&#x95ED;</strong>&#xFF1A;&#x6CA1;&#x6709;&#x5173;&#x95ED;&#x6309;&#x94AE;&#xFF0C;&#x4E0D;&#x53EF;&#x5173;&#x95ED;&#xFF1B;</p>
<p><strong>&#x9ED8;&#x8BA4;&#x5173;&#x95ED;</strong>&#xFF1A;&#x5F53;&#x70B9;&#x51FB;&#x5173;&#x95ED;&#x6309;&#x94AE;&#x540E;&#xFF0C;&#x540E;&#x7EED;&#x6253;&#x5F00;&#x6B64;&#x89C6;&#x56FE;&#xFF0C;&#x8BD5;&#x56FE;&#x6D88;&#x606F;&#x4E0D;&#x4E88;&#x5C55;&#x793A;&#xFF1B;</p>
<p><strong>&#x672C;&#x6B21;&#x5173;&#x95ED;</strong>&#xFF1A;&#x672C;&#x6B21;&#x5173;&#x95ED;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x3002;</p>
<p>&#x5982;&#x679C;&#x914D;&#x7F6E;&#x9ED8;&#x8BA4;&#x5173;&#x95ED;&#xFF0C;&#x5219;&#x4F1A;&#x6839;&#x636E;&#x8BE5;&#x89C6;&#x56FE;&#x540D;&#x79F0;&#x3001;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x6807;&#x8BC6;&#x4EE5;&#x53CA;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x6807;&#x8BC6;&#x67E5;&#x8BE2;localStorage&#x4E2D;&#x662F;&#x5426;&#x5B58;&#x5728;&#x6B64;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#xFF0C;&#x5982;&#x679C;&#x5B58;&#x5728;&#x5219;&#x4E0D;&#x4E88;&#x5C55;&#x793A;&#x3002;&#x6839;&#x636E;&#x7ED3;&#x679C;&#x8FD4;&#x56DE;&#x663E;&#x793A;&#x6807;&#x8BB0;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-keyword">public</span> handleItemCloseMode(data: <span class="hljs-built_in">any</span>) {
        <span class="hljs-keyword">let</span> flag = <span class="hljs-literal">true</span>;
        data.showState = <span class="hljs-literal">true</span>; 
        <span class="hljs-keyword">if</span>(data.closeMode || data.closeMode == <span class="hljs-number">0</span>) {
            <span class="hljs-keyword">if</span>(data.closeMode == <span class="hljs-number">1</span>) {
                <span class="hljs-keyword">const</span> tag = <span class="hljs-keyword">this</span>.viewname + <span class="hljs-string">&apos;_&apos;</span> + <span class="hljs-keyword">this</span>.infoGroup + <span class="hljs-string">&apos;_&apos;</span> + data.codename;
                <span class="hljs-keyword">const</span> id = localStorage.getItem(tag);
                <span class="hljs-keyword">if</span>(id) {
                    data.showState = <span class="hljs-literal">false</span>;
                    flag = <span class="hljs-literal">false</span>;
                }
            }
            <span class="hljs-keyword">if</span>(data.closeMode == <span class="hljs-number">0</span>) {
                data.closable = <span class="hljs-literal">false</span>;
            }
        }
        <span class="hljs-keyword">return</span> flag;
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x9ED8;&#x8BA4;&#x5173;&#x95ED;&#x6A21;&#x5F0F;&#x4E0B;&#x5904;&#x7406;&#x903B;&#x8F91;</p></blockquote>

<p>&#x5728;&#x9ED8;&#x8BA4;&#x5173;&#x95ED;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C;&#x5173;&#x95ED;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x89E6;&#x53D1;alertClose()&#x65B9;&#x6CD5;&#x65F6;&#xFF0C;&#x4F1A;&#x5C06;&#x89C6;&#x56FE;&#x540D;&#x79F0;&#x3001;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x7EC4;&#x6807;&#x8BC6;&#x3001;&#x89C6;&#x56FE;&#x6D88;&#x606F;&#x6807;&#x8BC6;&#x4F5C;&#x4E3A;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x4FDD;&#x5B58;&#x5230;localStorage&#x4E2D;&#xFF0C;&#x4EE5;&#x4FBF;&#x4E0B;&#x4E00;&#x6B21;&#x6253;&#x5F00;&#x8BE5;&#x89C6;&#x56FE;&#x65F6;&#x505A;&#x5904;&#x7406;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-keyword">public</span> alertClose(data: <span class="hljs-built_in">any</span>) {
        <span class="hljs-keyword">if</span>(data.customClass) {
            <span class="hljs-keyword">let</span> tempArr: <span class="hljs-built_in">any</span>[] = data.customClass.toString().split(<span class="hljs-string">&apos;,&apos;</span>);
            <span class="hljs-keyword">if</span>(tempArr &amp;&amp; tempArr.length &gt; <span class="hljs-number">0</span>) {
                <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(<span class="hljs-string">&quot;1&quot;</span>, tempArr[<span class="hljs-number">1</span>])) {
                    <span class="hljs-keyword">const</span> tag = <span class="hljs-keyword">this</span>.viewname + <span class="hljs-string">&apos;_&apos;</span> + <span class="hljs-keyword">this</span>.infoGroup + <span class="hljs-string">&apos;_&apos;</span> + tempArr[<span class="hljs-number">0</span>];
                    localStorage.setItem(tag, data.customClass);
                }
            } 
        }
        <span class="hljs-keyword">if</span>(data.closeMode &amp;&amp; data.closeMode == <span class="hljs-number">1</span>) {
            <span class="hljs-keyword">const</span> tag = <span class="hljs-keyword">this</span>.viewname + <span class="hljs-string">&apos;_&apos;</span> + <span class="hljs-keyword">this</span>.infoGroup + <span class="hljs-string">&apos;_&apos;</span> + data.codename;
            localStorage.setItem(tag,data.id);
        }
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x5904;&#x7406;&#x6D88;&#x606F;&#x663E;&#x793A;&#x4F4D;&#x7F6E;</p></blockquote>

<p>&#x5224;&#x65AD;&#x6D88;&#x606F;&#x663E;&#x793A;&#x4F4D;&#x7F6E;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x5F39;&#x51FA;&#x663E;&#x793A;&#x4E14;&#x5173;&#x95ED;&#x6807;&#x8BB0;&#x4E3A;true&#x5219;&#x8C03;&#x7528;Element&#x7684;&#x6D88;&#x606F;&#x63D0;&#x793A;&#x7EC4;&#x4EF6;&#x8FDB;&#x884C;&#x5C55;&#x793A;&#xFF0C;&#x5426;&#x5219;&#x4F7F;&#x7528;&#x9ED8;&#x8BA4;&#x903B;&#x8F91;&#x3002;</p>
<pre><code class="lang-typescript">    <span class="hljs-keyword">public</span> handleItemPosition(data: <span class="hljs-built_in">any</span>, flag: <span class="hljs-built_in">boolean</span>) {
        <span class="hljs-keyword">if</span>(data.position) {
            <span class="hljs-keyword">if</span>(flag &amp;&amp; <span class="hljs-built_in">Object</span>.is(<span class="hljs-string">&apos;POPUP&apos;</span>, data.position)) {
                <span class="hljs-keyword">const</span> h = <span class="hljs-keyword">this</span>.$createElement;
                data.showState = <span class="hljs-literal">false</span>;
                <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(<span class="hljs-string">&apos;HTML&apos;</span>,data.messageType) &amp;&amp; data.hasMessageTemp) {
                    setTimeout(() =&gt; {
                        <span class="hljs-keyword">this</span>.$message({
                            customClass: data.codename+<span class="hljs-string">&quot;,&quot;</span>+data.closeMode,
                            message: h(<span class="hljs-string">&apos;div&apos;</span>,{}, [
                                h(<span class="hljs-string">&apos;p&apos;</span>,data.title),
                                h(<span class="hljs-string">&apos;p&apos;</span>,{domProps:{innerHTML: data.content}})
                            ]), 
                            <span class="hljs-keyword">type</span>: data.type,
                            showClose: data.closable,
                            onClose: <span class="hljs-keyword">this</span>.alertClose,
                        })
                    }, <span class="hljs-number">0</span>)
                } <span class="hljs-keyword">else</span> {
                    setTimeout(() =&gt; {
                        <span class="hljs-keyword">this</span>.$message({
                            customClass: data.codename+<span class="hljs-string">&quot;,&quot;</span>+data.closeMode,
                            message: h(<span class="hljs-string">&apos;div&apos;</span>,{}, [
                                h(<span class="hljs-string">&apos;p&apos;</span>,data.title),
                                h(<span class="hljs-string">&apos;p&apos;</span>,data.content)
                            ]), 
                            <span class="hljs-keyword">type</span>: data.type,
                            showClose: data.closable,
                            onClose: <span class="hljs-keyword">this</span>.alertClose,
                        })
                    }, <span class="hljs-number">0</span>)
                }
            }
        }
    }
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="NAVPARAM.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 自定义导航参数">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"视图消息","level":"2.1.8","depth":2,"next":{"title":"视图","level":"2.2","depth":1,"ref":"","articles":[{"title":"实体编辑视图","level":"2.2.1","depth":2,"path":"VIEWS/EDITVIEW.md","ref":"./VIEWS/EDITVIEW.md","articles":[]},{"title":"实体编辑视图(分页关系)","level":"2.2.2","depth":2,"path":"VIEWS/EDITVIEWPAGE.md","ref":"./VIEWS/EDITVIEWPAGE.md","articles":[]},{"title":"实体编辑视图(上下关系)","level":"2.2.3","depth":2,"path":"VIEWS/EDITVIEWUPDOWN.md","ref":"./VIEWS/EDITVIEWUPDOWN.md","articles":[]},{"title":"实体编辑视图(左右关系)","level":"2.2.4","depth":2,"path":"VIEWS/EDITVIEWABOUT.md","ref":"./VIEWS/EDITVIEWABOUT.md","articles":[]},{"title":"实体多表单编辑视图","level":"2.2.5","depth":2,"path":"VIEWS/MEDITVIEW.md","ref":"./VIEWS/MEDITVIEW.md","articles":[]},{"title":"实体表格视图","level":"2.2.6","depth":2,"path":"VIEWS/GRIDVIEW.md","ref":"./VIEWS/GRIDVIEW.md","articles":[]},{"title":"实体表格导航视图","level":"2.2.7","depth":2,"path":"VIEWS/GRIDEXPVIEW.md","ref":"./VIEWS/GRIDEXPVIEW.md","articles":[]},{"title":"实体分页导航视图","level":"2.2.8","depth":2,"path":"VIEWS/TABEXPVIEW.md","ref":"./VIEWS/TABEXPVIEW.md","articles":[]},{"title":"实体数据看板视图","level":"2.2.9","depth":2,"path":"VIEWS/EntityDataKanbanView.md","ref":"./VIEWS/EntityDataKanbanView.md","articles":[]},{"title":"实体列表视图","level":"2.2.10","depth":2,"path":"VIEWS/LISTVIEW.md","ref":"./VIEWS/LISTVIEW.md","articles":[]},{"title":"实体列表导航视图","level":"2.2.11","depth":2,"path":"VIEWS/LISTEXPVIEW.md","ref":"./VIEWS/LISTEXPVIEW.md","articles":[]},{"title":"实体数据视图","level":"2.2.12","depth":2,"path":"VIEWS/DATAVIEW.md","ref":"./VIEWS/DATAVIEW.md","articles":[]},{"title":"实体选项操作视图","level":"2.2.13","depth":2,"path":"VIEWS/OPTIONVIEW.md","ref":"./VIEWS/OPTIONVIEW.md","articles":[]},{"title":"实体卡片导航视图","level":"2.2.14","depth":2,"path":"VIEWS/DATAVIEWEXPVIEW.md","ref":"./VIEWS/DATAVIEWEXPVIEW.md","articles":[]},{"title":"实体日历视图","level":"2.2.15","depth":2,"path":"VIEWS/CALENDARVIEW.md","ref":"./VIEWS/CALENDARVIEW.md","articles":[]},{"title":"实体日历导航视图","level":"2.2.16","depth":2,"path":"VIEWS/DAREXPVIEW.md","ref":"./VIEWS/DAREXPVIEW.md","articles":[]},{"title":"实体树视图","level":"2.2.17","depth":2,"path":"VIEWS/TREEVIEW.md","ref":"./VIEWS/TREEVIEW.md","articles":[]},{"title":"实体树导航视图","level":"2.2.18","depth":2,"path":"VIEWS/TREEEXPVIEW.md","ref":"./VIEWS/TREEEXPVIEW.md","articles":[]},{"title":"实体树表格视图","level":"2.2.19","depth":2,"path":"VIEWS/TREEGRIDEXVIEW.md","ref":"./VIEWS/TREEGRIDEXVIEW.md","articles":[]},{"title":"应用首页视图","level":"2.2.20","depth":2,"path":"VIEWS/INDEXVIEW.md","ref":"./VIEWS/INDEXVIEW.md","articles":[]},{"title":"应用看板视图","level":"2.2.21","depth":2,"path":"VIEWS/AppKanBanView.md","ref":"./VIEWS/AppKanBanView.md","articles":[]},{"title":"实体看板视图","level":"2.2.22","depth":2,"path":"VIEWS/ENTITYKANBANVIEW.md","ref":"./VIEWS/ENTITYKANBANVIEW.md","articles":[]},{"title":"实体甘特图视图","level":"2.2.23","depth":2,"path":"VIEWS/GANTTVIEW.md","ref":"./VIEWS/GANTTVIEW.md","articles":[]},{"title":"实体图表视图","level":"2.2.24","depth":2,"path":"VIEWS/ENTITYCHARTVIEW.md","ref":"./VIEWS/ENTITYCHARTVIEW.md","articles":[]},{"title":"实体数据选择视图","level":"2.2.25","depth":2,"path":"VIEWS/ENTITYDATASELECTVIEW.md","ref":"./VIEWS/ENTITYDATASELECTVIEW.md","articles":[]},{"title":"实体选择表格视图","level":"2.2.26","depth":2,"path":"VIEWS/ENTITYSELECTGRIDVIEW.md","ref":"./VIEWS/ENTITYSELECTGRIDVIEW.md","articles":[]},{"title":"实体选择树视图","level":"2.2.27","depth":2,"path":"VIEWS/ENTITYSELECTTREEVIEW.md","ref":"./VIEWS/ENTITYSELECTTREEVIEW.md","articles":[]},{"title":"实体索引关系选择视图","level":"2.2.28","depth":2,"path":"VIEWS/INDEXPICKUPDATAVIEW.md","ref":"./VIEWS/INDEXPICKUPDATAVIEW.md","articles":[]},{"title":"实体工作流动态导航表格视图","level":"2.2.29","depth":2,"path":"VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.md","ref":"./VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.md","articles":[]},{"title":"实体工作流动态编辑视图","level":"2.2.30","depth":2,"path":"VIEWS/ENTITYWORKFLOWEDITVIEW.md","ref":"./VIEWS/ENTITYWORKFLOWEDITVIEW.md","articles":[]},{"title":"应用登录视图","level":"2.2.31","depth":2,"path":"VIEWS/LOGINVIEW.md","ref":"./VIEWS/LOGINVIEW.md","articles":[]},{"title":"应用数据导入视图","level":"2.2.32","depth":2,"path":"VIEWS/DATAUPLOADVIEW.md","ref":"./VIEWS/DATAUPLOADVIEW.md","articles":[]},{"title":"实体数据重定向视图","level":"2.2.33","depth":2,"path":"VIEWS/REDIRECTVIEW.md","ref":"./VIEWS/REDIRECTVIEW.md","articles":[]},{"title":"实体自定义视图","level":"2.2.34","depth":2,"path":"VIEWS/CUSTOM.md","ref":"./VIEWS/CUSTOM.md","articles":[]},{"title":"实体向导视图","level":"2.2.35","depth":2,"path":"VIEWS/WIZARDVIEW.md","ref":"./VIEWS/WIZARDVIEW.md","articles":[]}]},"previous":{"title":"自定义导航参数","level":"2.1.7","depth":2,"path":"APPS/NAVPARAM.md","ref":"./APPS/NAVPARAM.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"APPS/VIEWMESSAGE.md","mtime":"2020-10-10T08:35:32.942Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

